<?php

function reindex($haystack, $start = 0)
{
		$foo = array();
		foreach ($haystack as $value) {
				$foo[++$start] = strtolower($value);
		}
		return $foo;
}

function pr($what)
{
	echo '<pre>';
	print_r($what);
	echo "</pre>";
}

function afne($x)
{
	foreach ($x as $k=>$v) { $a = empty($v) ? 0 : $k; if ($a != 0) { return $a; } }
	return FALSE;
}

function home()
{
	header('Location: /index.php');
	exit();
}

?>